﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ManageProvider.aspx.cs" Inherits="WXYW.ManageProvider" %>

<%@ Register Namespace="WXYW.Controls" TagPrefix="WXYWControl" Assembly="WXYW.Common" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="Ajax" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    管理代理商资料
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <WXYWControl:CustomGridView ID="ProviderGridView" runat="server" AutoGenerateColumns="False"
        CssClass="tableList" Width="100%" AllowPaging="True" AllowSorting="True" PageSize="20"
        OnRowDataBound="ProviderGridView_RowDataBound" OnSorting="ProviderGridView_Sorting"
        OnRowCommand="ProviderGridView_RowCommand" OnDataBound="ProviderGridView_DataBound"
        OnMustAddARow="ProviderGridView_MustAddARow" OnPageIndexChanging="ProviderGridView_PageIndexChanging">
        <Columns>
            <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="IDLbl" runat="server"></asp:Label>
                </ItemTemplate>
                <HeaderStyle Wrap="False" Width="3%" />
                <ItemStyle Wrap="False" HorizontalAlign="Left" Width="3%" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="代码" DataField="ProviderCode" SortExpression="ProviderCode">
                <HeaderStyle Wrap="False" Width="5%" />
                <ItemStyle Wrap="False" HorizontalAlign="Left" Width="5%" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="名称" SortExpression="ProviderName">
                <ItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("ProviderName") %>' TextMode="MultiLine" Columns="15" Rows="1" CssClass="NOBorderTxtBox"></asp:TextBox>
                </ItemTemplate>
                <HeaderStyle Width="13%" Wrap="False" />
                <ItemStyle HorizontalAlign="Left" Width="13%" Wrap="False" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="产品类型" SortExpression="ProductClass.Name">
                <ItemTemplate>
                     <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ProductClass.Name") %>' TextMode="MultiLine" Columns="12" Rows="1" CssClass="NOBorderTxtBox"></asp:TextBox>
                </ItemTemplate>
                <HeaderStyle Wrap="False" Width="10%" />
                <ItemStyle Wrap="False" HorizontalAlign="Left" Width="10%"/>
            </asp:TemplateField>
            <asp:BoundField HeaderText="接口人1" DataField="Contact1Name" SortExpression="Contact1Name">
                <HeaderStyle Wrap="False" Width="10%" />
                <ItemStyle Wrap="False" HorizontalAlign="Left" Width="10%"/>
            </asp:BoundField>
            <asp:BoundField HeaderText="联系手机" DataField="Contact1MobilePhone" SortExpression="Contact1MobilePhone">
                <HeaderStyle Wrap="False" Width="10%"/>
                <ItemStyle Wrap="False" HorizontalAlign="Left" Width="10%" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="邮箱" SortExpression="Contact1Email">
                <ItemTemplate>
                    <asp:TextBox ID="TextBox27" runat="server" Text='<%# Bind("Contact1Email") %>' TextMode="MultiLine" Columns="15" Rows="1" CssClass="NOBorderTxtBox"></asp:TextBox>
                </ItemTemplate>
                <HeaderStyle Width="10%" Wrap="False" />
                <ItemStyle HorizontalAlign="Left" Width="10%" Wrap="False" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="通讯地址" SortExpression="Address">
                <ItemTemplate>
                     <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Address") %>' TextMode="MultiLine" Columns="23" Rows="1" CssClass="NOBorderTxtBox"></asp:TextBox>
                </ItemTemplate>
                <HeaderStyle Wrap="False" Width="19%"/>
                <ItemStyle HorizontalAlign="Left" Wrap="False" Width="19%"/>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作" ShowHeader="False">
                <ItemTemplate>
                    <img src="image/operateicon/docview.gif" alt="" />
                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" CommandName="Detail"
                        Text="查看" CommandArgument='<%#Eval("ProviderID") %>'></asp:LinkButton>
                </ItemTemplate>
                <HeaderStyle Wrap="False" Width="6%" />
                <ItemStyle Wrap="False" Width="6%"/>
            </asp:TemplateField>
        </Columns>
        <PagerTemplate>
            本类记录<span style="color: Red"><%= ProviderGridView.Rows.Count%></span>条, <span style="color: Red">
                20</span>条/页 当前 <span style="color: Red">
                    <%= ProviderGridView.PageIndex + 1%>/<%= ProviderGridView.PageCount%></span>页
            <asp:LinkButton CommandName="Page" CommandArgument="First" ID="LinkButton1" runat="server"
                Style="color: blue">首页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Prev"
                    ID="LinkButton2" runat="server" Style="color: blue">|上一页</asp:LinkButton>
            <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="LinkButton3" runat="server"
                Style="color: blue">下一页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Last"
                    ID="LinkButton4" runat="server" Style="color: blue">|尾页</asp:LinkButton>
            转到<asp:DropDownList ID="pageDDL" runat="server" AutoPostBack="True" OnSelectedIndexChanged="pageDDL_SelectedIndexChanged">
            </asp:DropDownList>
        </PagerTemplate>
        <HeaderStyle ForeColor="White" Font-Bold="True" BackColor="#A55129"></HeaderStyle>       
    </WXYWControl:CustomGridView>
</asp:Content>
